#!/bin/sh

cd ${0%/*} || exit 1

. $WM_PROJECT_DIR/bin/tools/RunFunctions

runApplication blockMesh

runApplication splitMeshRegions -cellZonesOnly -overwrite

runApplication -s air changeDictionary -region air 
runApplication -s solid changeDictionary -region solid

runApplication -s air    decomposePar -region air
runApplication -s solid decomposePar -region solid

runParallel $(getApplication)

runApplication -s air    reconstructPar -region air
runApplication -s solid reconstructPar -region solid

runApplication postProcess -field U -func vorticity -region air
